package com.online.edu.util.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(200,"请求成功"),
    ERROR(500,"请求错误"),
    NO_AUTHOR(302,"用户未验证");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
